<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Firmware</title>
		<script>

        </script>
		<style>
			.main {
				display: inline-flex;
				flex-direction: column;
				align-items: center;
			}
			.main p {
				display: flex;
				flex-direction: row;
				align-items: center;
			}
			.main input {
				min-width: 200px;
			}
			.main span {
				min-width: 100px;
			}

		</style>
	</head>
	<body>
		<h1>Burn records</h1>
		<div class="main">
			<form action="" enctype="multipart/form-data" method="post">
				<p>
					<span>Main No:</span>
					<input type="text" name="main_no">
				</p>
				<p>
					<span>Sub No:</span>
					<input type="text" name="sub_no">
				</p>
				<p>
					<span>Burn result:</span>
					<select name="burn_result">
						<option value=""></option>
						<option value="Success">Success</option>
						<option value="Failed">Failed</option>
					</select>
				</p>
				<p>
					<span>Begin Date:</span>
					<input type="date" name="datetime_begin">
				</p>
				<p>
					<span>End Date:</span>
					<input type="date" name="datetime_end">
				</p>
				<p>
					<span>Chip UID:</span>
					<input type="text" name="chip_uid">
				</p>

				<div align="right"><input type="submit" name="action" value="query"></div>
			</form>
		</div>
		<div>
			{% if records %}
			<p>Count:{{records|length}}</p>
			<div style="max-height:500px;overflow-y:scroll">
				{% for record in records %}
				<p style="font-size: small;"> {{ record }}</p>
				{% endfor %}
				{% else %}
				<p>Count:0</p>
				{% endif %}
			</div>
		</div>
	</body>
</html>
